package es.xpt.ysf.commons.issues;

import java.security.Principal;
import java.util.ResourceBundle;

import es.xpt.ysf.dao.DAOErrors;
import es.xpt.ysf.dao.DAOException;
import es.xpt.ysf.dao.DbDAOFactory;

public class IssueDAOFactory extends DbDAOFactory{
	
	private static DAOErrors errors = new DAOErrors(ResourceBundle.getBundle("es.xpt.ysf.commons.issues.IssuesErrorMessages"));

	public IssueDAOFactory(Principal principal) throws DAOException {
		super(principal);
    }
	
	public IssueDAO getIssueDAO() {
		   return new IssueDAO(con, principal, errors);
	}
}
